package content

import (
	"day12_12_homework/internal/api/content"
	"day12_12_homework/internal/middle"
	"github.com/gin-gonic/gin"
)

func ContentRouter(c *gin.RouterGroup) {
	contentRouter := c.Group("/content").Use(middle.AuthMiddleware())
	{
		contentRouter.POST("/create", content.CreateContent)
		contentRouter.GET("/list", content.ListContent)
	}
}
